package com.health.tablebean;

import java.util.Date;

import android.text.TextUtils;
import net.tsz.afinal.annotation.sqlite.Id;
import net.tsz.afinal.annotation.sqlite.Table;

/**
 * @author Administrator 家庭档案信息表
 * 
 * 
 */
@Table(name = "ARCHIVE_FAMILY_INFO")
public class ARCHIVE_FAMILY_INFO {
	/** 住房面积 */
	private String HOUSE_AREA;
	/** 月用食用油量(斤) */
	private String MONTHOIL;
	/** 月用食盐量（克） */
	private String MONTHSALT;
	/** 创建人 */
	private String CREATED_BY;
	/** 创建时间 */
	private Date CREATED_DATE;
	/** 修改人 */
	private String LAST_UPDATE_BY;
	/** 修改时间 */
	private Date LAST_UPDATE_DATE;
	/** 建档单位 */
	private String CREATE_UNIT;
	/** 家庭人均月收入 */
	private String INCOME_AVG;
	/** 居住状况1本地户籍常住2本地户籍不常住3外地户籍常住4不详 */
	private String LIVE_STATUS;
	/** 是否低保用户1是0否 */
	private String IS_POORFY;
	/** 住房类型1平房2楼房 */
	private String HOUSE_TYPE;
	/** 厕所类型1坐式抽水式马桶2蹲式冲水式马桶3公共厕所4其他 */
	private String TOILET_TYPE;
	/** 详细住址 */
	private String HOME_ADDR_INFO;
	/** 居住地址 */
	private String HOME_ADDR;
	/**																											*/
	private String IS_DEL;
	/** 身份证号 */
	private String IDCARD;
	/** 家庭档案编号FY开头+17位国家编码规则 */
	private String FY_ARCHIVEID;
	/** 主键标识 */
	@Id(column = "ID")
	private String ID;
	/** 户主档案编号 */
	private String ARCHIVEID;
	
	

	
	public Date getCREATED_DATE() {
		return CREATED_DATE;
	}

	public void setCREATED_DATE(Date cREATED_DATE) {
		CREATED_DATE = cREATED_DATE;
	}

	public String getLAST_UPDATE_BY() {
		return LAST_UPDATE_BY;
	}

	public void setLAST_UPDATE_BY(String lAST_UPDATE_BY) {
		LAST_UPDATE_BY = lAST_UPDATE_BY;
	}

	public Date getLAST_UPDATE_DATE() {
		return LAST_UPDATE_DATE;
	}

	public void setLAST_UPDATE_DATE(Date lAST_UPDATE_DATE) {
		LAST_UPDATE_DATE = lAST_UPDATE_DATE;
	}

	public String getHOUSE_AREA() {
		return HOUSE_AREA;
	}

	public void setHOUSE_AREA(String hOUSE_AREA) {
		HOUSE_AREA = hOUSE_AREA;
	}

	public String getMONTHOIL() {
		return MONTHOIL;
	}

	public void setMONTHOIL(String mONTHOIL) {
		MONTHOIL = mONTHOIL;
	}

	public String getMONTHSALT() {
		return MONTHSALT;
	}

	public void setMONTHSALT(String mONTHSALT) {
		MONTHSALT = mONTHSALT;
	}

	public String getCREATED_BY() {
		return CREATED_BY;
	}

	public void setCREATED_BY(String cREATED_BY) {
		CREATED_BY = cREATED_BY;
	}



	public String getCREATE_UNIT() {
		return CREATE_UNIT;
	}

	public void setCREATE_UNIT(String cREATE_UNIT) {
		CREATE_UNIT = cREATE_UNIT;
	}

	public String getINCOME_AVG() {
		return INCOME_AVG;
	}

	public void setINCOME_AVG(String iNCOME_AVG) {
		INCOME_AVG = iNCOME_AVG;
	}

	public String getLIVE_STATUS() {
		return LIVE_STATUS;
	}

	public void setLIVE_STATUS(String lIVE_STATUS) {
		LIVE_STATUS = lIVE_STATUS;
	}

	public String getIS_POORFY() {
		return IS_POORFY;
	}

	public void setIS_POORFY(String iS_POORFY) {
		IS_POORFY = iS_POORFY;
	}

	public String getHOUSE_TYPE() {
		return HOUSE_TYPE;
	}

	public void setHOUSE_TYPE(String hOUSE_TYPE) {
		HOUSE_TYPE = hOUSE_TYPE;
	}

	public String getTOILET_TYPE() {
		return TOILET_TYPE;
	}

	public void setTOILET_TYPE(String tOILET_TYPE) {
		TOILET_TYPE = tOILET_TYPE;
	}

	public String getHOME_ADDR_INFO() {
		return HOME_ADDR_INFO;
	}

	public void setHOME_ADDR_INFO(String hOME_ADDR_INFO) {
		HOME_ADDR_INFO = hOME_ADDR_INFO;
	}

	public String getHOME_ADDR() {
		return HOME_ADDR;
	}

	public void setHOME_ADDR(String hOME_ADDR) {
		HOME_ADDR = hOME_ADDR;
	}

	public String getIS_DEL() {
		return IS_DEL;
	}

	public void setIS_DEL(String iS_DEL) {
		IS_DEL = iS_DEL;
	}

	public String getIDCARD() {
		return IDCARD;
	}

	public void setIDCARD(String iDCARD) {
		IDCARD = iDCARD;
	}

	public String getFY_ARCHIVEID() {
		return FY_ARCHIVEID;
	}

	public void setFY_ARCHIVEID(String fY_ARCHIVEID) {
		FY_ARCHIVEID = fY_ARCHIVEID;
	}

	public String getID() {
		return ID;
	}

	public void setID(String iD) {
		ID = iD;
	}

	public String getARCHIVEID() {
		return ARCHIVEID;
	}

	public void setARCHIVEID(String aRCHIVEID) {
		ARCHIVEID = aRCHIVEID;
	}

	public boolean equals(Object o) {
		if (!(o instanceof ARCHIVE_FAMILY_INFO)) {
			return false;
		}
		ARCHIVE_FAMILY_INFO obj = (ARCHIVE_FAMILY_INFO) o;

		if (notNull(getARCHIVEID()).equals(notNull(obj.getARCHIVEID()))
				&& notNull(getCREATE_UNIT()).equals(obj.getCREATE_UNIT())
				&& notNull(getCREATED_BY()).equals(obj.getCREATED_BY())
				&& notNull(getCREATED_DATE()).equals(obj.getCREATED_DATE())
				&& notNull(getFY_ARCHIVEID()).equals(obj.getFY_ARCHIVEID())
				&& notNull(getHOME_ADDR()).equals(obj.getHOME_ADDR())
				&& notNull(getHOME_ADDR_INFO()).equals(obj.getHOME_ADDR_INFO())
				&& notNull(getHOUSE_AREA()).equals(obj.getHOUSE_AREA())
				&& notNull(getHOUSE_TYPE()).equals(obj.getHOUSE_TYPE())
				&& notNull(getIDCARD()).equals(obj.getIDCARD())
				&& notNull(getINCOME_AVG()).equals(obj.getINCOME_AVG())
				&& notNull(getIS_DEL()).equals(obj.getIS_DEL())
				&& notNull(getIS_POORFY()).equals(obj.getIS_POORFY())
				&& notNull(getLIVE_STATUS()).equals(obj.getLIVE_STATUS())
				&& notNull(getMONTHOIL()).equals(obj.getMONTHOIL())
				&& notNull(getMONTHSALT()).equals(obj.getMONTHSALT())
				&& notNull(getTOILET_TYPE()).equals(obj.getTOILET_TYPE())) {
			return true;
		}
		return false;
	}

	private String notNull(String str) {
		if (TextUtils.isEmpty(str)) {
			return "";
		}
		return str;
	}

	private String notNull(int str) {
		if (str == 0) {
			return "0";
		}
		return String.valueOf(str);
	}

	private Date notNull(Date date) {
		if (date == null) {
			return new Date();
		}
		return date;
	}

}
